package cn.kgc.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;

/**
 * 商品满减信息(SmsSkuFullReduction)表实体类
 *
 * @author makejava
 * @since 2022-12-05 14:59:12
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "sms_sku_full_reduction")
@SuppressWarnings("serial")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class SmsSkuFullReduction extends Model<SmsSkuFullReduction> implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id; //主键


    /**
     * spu_id
     **/
    @TableField(value = "sku_id")
    private Long skuId;


    /**
     * 满多少
     **/
    @TableField(value = "full_price")
    private BigDecimal fullPrice;


    /**
     * 减多少
     **/
    @TableField(value = "reduce_price")
    private BigDecimal reducePrice;


    /**
     * 是否参与其他优惠
     **/
    @TableField(value = "add_other")
    private Short addOther;


    @TableField(value = "creationdate", fill = FieldFill.INSERT)
    @JsonIgnore
    private Date creationdate; //创建时间


    @TableField(value = "modifydate", fill = FieldFill.UPDATE)
    @JsonIgnore
    private Date modifydate; //修改时间


    @Version
    private int version;   //版本


    @TableLogic
    @JsonIgnore
    @TableField(fill = FieldFill.INSERT)
    private int deleted;  //逻辑删除标志


}
